package statePattern;

public class Main {
    public static void main(String[] args) {
        Context context = new Context();
        context.setCurrentState(new OpenState());
        context.request();  // OpenState

        context.setCurrentState(new CloseState());
        context.request();   // ClosedState
    }
}
